package com.nana.petadventure.controller
{
	import com.nana.petadventure.app.AppControllerList;
	import com.nana.petadventure.app.AppView;
	import com.nana.petadventure.ui.game.StartView;

	public class GameController
	{
		private var _startView:StartView;
		
		public function GameController()
		{
		}
		
		public function init():void {
			this.showStartView();
		}
		
		public function showStartView():void {
			if(_startView == null) {
				_startView = new StartView(); 
			}
			AppView.getInstance().sceneLayer.addChild(_startView);
		}
		
		public function showResultBox():void {
			
		}
		
		public function showHighScores():void {
			
		}
		
		public function showOptionBox():void {
			
		}
		
		public function gameStart():void {
			if (_startView != null) {
				AppView.getInstance().sceneLayer.removeChild(_startView);
			}
			AppControllerList.getInstance().mapController.showMapView();
		}
		
		public function closeResultBox():void {
			
		}
		
		public function closeHighScore():void {
			
		}
		
		public function closeOptionBox():void {
			
		}
	}
}